﻿using System;
using static CommonModel.Model.DataTypeDll;

namespace CommonModel.Field
{
    public class ParsedField : FieldData //继承
    {
		private bool IsAlarm;
		private String alarmValue;
		private String alarmName;
		private String deviceType;
		private String code;
		private string memo;
		private string isSave;
		private string id;
		private int layer;

		public ParsedField()
        { 
        
        }

		public override int getLayer()
		{
			return this.layer;
		}

		public override void setLayer(int layer)
		{
			this.layer = layer;
		}

		public override DataType getType()
		{
			return this.type;
		}

		public override void setType(DataType type)
		{
			this.type = type;
		}

		public override void setIsSave(string isSave)
		{
			this.isSave = isSave;
		}

		public override string getIsSave()
		{
			return this.isSave;
		}

		public override string getId()
		{
			return this.id;
		}

		public override void setId(string id)
		{
			this.id = id;
		}

		public override int getIndex()
		{
			return 0;
		}
		public override string getMemo()
		{
			return this.memo;
		}

		public override void setMemo(string memo)
		{
			this.memo = memo;
		}


		public override void setIndex(int index)
		{

		}

		public override int getSize()
		{
			return 0;
		}

		public override void setSize(int size)
		{

		}

		public override string getDeviceType()
		{
			return deviceType;
		}

		public override void setDeviceType(string deviceType)
		{
			this.deviceType = deviceType;
		}

		public override bool isAlarm()
		{
			return IsAlarm;
		}

		public override void setAlarm(bool IsAlarm)
		{
			this.IsAlarm = IsAlarm;
		}

		public override string getAlarmValue()
		{
			return alarmValue;
		}

		public override void setAlarmValue(string alarmValue)
		{
			this.alarmValue = alarmValue;
		}

		public override string getAlarmName()
		{
			return alarmName;
		}

		public override void setAlarmName(string alarmName)
		{
			this.alarmName = alarmName;
		}

		public override string getLoop()
		{
			return "";
		}

		public override void setLoop(string loop)
		{

		}

		public override string getCode()
		{
			return code;
		}

		public override void setCode(string code)
		{
			this.code = code;
		}
	}
}
